import axios from "../../../axios";
//店铺管理
//店铺列表  渲染
export const getShopListStart = (param) => {
    return axios.request({
        url:'/shops/admin/selectShopByC',
        params:param
    })
}
//查询商铺
export const searchShopStart = (param) => {
    return axios.request({
        url:'/shops/admin/selectShopByC',
        params:param
    })
}
//封禁商铺
export const closeShopStart = (param) => {
    return axios.request({
        url:'/shops/admin/banShops',
        params:param,
        method:'POST'
    })
}
//店铺封禁列表
export const getShopListClose = (param) => {
    return axios.request({
        url:'/shops/admin/selectBanShop',
        params:param,
    })
}
export const openMoreShopStart = (param) => {
    return axios.request({
        url:'/shops/admin/unBanShop',
        method:'DELETE',
        params:param,
        paramsSerializer: params => {
            return qs.stringify(params, { indices: false })  //直接传数组传不过去，这样传才会每一个id值都匹配在路径上
            },
    })
}